home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part IV.srd / Part IV.srd.rsrc / PICT_6.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  75KB  |  816x1056  |  8-bit (256 colors)
Labels: book | chat room | reckoner | sky | windowpane
OCR: IV-2 Mops Assembler stack , code demol Assembler me thod defini ti ons To write method de finition with the assembl Ler just use :mcode" for ": m The name of the new sel lector follows the :mcode" uo the same line example the pu and the "asmput class demo2 are synony ymous are asmget You will see that in me thod, the base addr ress of the current See Chapter for more in formati .on on addressing modes and Mops c usage of Exampl le: :class DEMO2 super{ object var intl PUT: put: intl Im GET: get: intl :mcode ASMGET move. 1, # (A2) - (A6) ,mcode :mcode ASMPUT move (A6)+, (A2) ,mcode ;class demo2 test2 put: test2 asmget: test2 cr 26 asmput : test2 get : testa Accessing the dicti ionary There is special syntax in the Mops Assemb er that obtains the address of dict. iona ry and assembles an An- ...